package com.wandian.view.components.ui.avatar.view.ui
{
    import flash.display.*;
    import com.wandian.view.components.ui.avatar.view.*;

    public class CutBox extends Sprite
    {
		public var cutArea:Sprite;
        public var maskArea:Sprite;
        public var flag:Flag;

        public function CutBox(_w:Number = 180, _h:Number = 180)
        {
            this.maskArea = new Sprite();
            this.cutArea = new Sprite();
            this.flag = new Flag();
            this.maskArea.graphics.clear();
            this.maskArea.graphics.beginFill(0, 0);
            this.maskArea.graphics.drawRect(0, 0, _w, _h);
            this.maskArea.graphics.endFill();
            this.cutArea.graphics.clear();
            this.cutArea.graphics.beginFill(0, 0);
            this.cutArea.graphics.drawRect(0, 0, _w, _h);
            this.cutArea.graphics.endFill();
            this.flag.x = _w;
            this.flag.y = _h;
            addChild(this.maskArea);	// 遮罩层
            addChild(this.cutArea);		// 剪切区
            addChild(this.flag);		// 拖拽小方块
            return;
        }

    }
}
